package com.lin;

import java.util.LinkedList;

public class test {
    public static void main(String[] args) {
        show01();
    }

    public static void show01(){
        LinkedList<String> linked = new LinkedList<>();
        linked.add("a");
        linked.add("a");
        linked.add("a");
        System.out.println(linked);

        linked.clear();

        if(linked.isEmpty()){
            linked.addFirst("www");
            linked.addLast(".com");

            System.out.println(linked);
        }



    }
}
